package com.jdrx.sw.sewage.beans.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * sewage_station_processunit
 */
@Data
@ApiModel(value = "ProcessunitPO", description = "站点的工艺单元")
public class ProcessunitPO implements Serializable {
    private static final long serialVersionUID = -1206960462117924923L;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "主键", required = true)
    private Long id;

    @NotEmpty
    @Length(min = 1, max = 100)
    @ApiModelProperty(value = "工艺单元名称", required = true)
    private String name;

    @NotNull
    @ApiModelProperty(value = "删除标记 false:正常 true:删除", required = true)
    private Boolean deleteFlag;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "所属站点(外键)", required = true)
    private Long stationId;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "字典id", required = true)
    private Long dictId;

    @NotEmpty
    @Length(min = 1, max = 100)
    @ApiModelProperty(value = "工艺单元值(遵循命名规范YYC1_JBJ1_GZ)", required = true)
    private String value;

    @NotEmpty
    @Length(min = 1, max = 200)
    @ApiModelProperty(value = "厂区（1-99）", required = true)
    private String factoryPeriod;
}